package team.knowers.agency.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import team.knowers.agency.dao.entity.FlightDO;
import team.knowers.agency.dto.req.GetFlightSearchReqDTO;
import team.knowers.agency.dto.req.PageGetFlightReqDTO;

import java.util.List;

public interface FlightService extends IService<FlightDO> {
    //查询航班
    List<FlightDO> getFlightPerPassenger(GetFlightSearchReqDTO reqDTO);
    /**
     * 查看单个航班情况
     */
    FlightDO getFlight(int id);

    /**
     * 修改航班信息
     */
    void modifyInformation(int id, int num,int seatReq);
    /**
     * 分页查询航班
     */
    IPage<FlightDO> pageFlight(PageGetFlightReqDTO req);
}
